#include <semaphore.h>
#include <stdbool.h>
#include <stdint.h>

extern uint32_t bus_in[3], bus_out[4];
/*
   bus_in
   0    [1]=dack [0]iack
   1    idat
   2    ddat

   bus_out
   0    [3]=dwren [2]=drden [1]=fin [0]=irden
   1    iadr
   2    dadr
   3    ddat
   */

extern sem_t mem_sem, cpu_sem;

const char *get_gpr_name(int index, uint8_t mode);

void cpu_init(void);
void *cpu_proc(void *_);

// vim: sw=4 expandtab
